﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace HomeCare
{
    class Conexao
    {
        //Conexao ADAN
        //private static string conexao = "server=ADAN-NB; Database=HomeCare;Integrated Security=SSPI";

        //Conexao DANIEL
        private string conexao = "server=DANIEL\\SQLEXPRESS; Database=HomeCare;Integrated Security=SSPI";

        public string ConnectionString
        {
            get
            {
                return conexao;
            }
        }

        public SqlConnection Conectar()
        {
            SqlConnection sqlConn = new SqlConnection(ConnectionString);
            return sqlConn;
        }
    }
}
